﻿<div id="header">
<div id="nav">
	<div id="box-menu-top">
		<!-- begin menu -->
		<div class="box-menu">
		    <a href="<?=$root?>/trang-chu/" <?php if($_SERVER['REQUEST_URI'] == $root.'/trang-chu/' || $_SERVER['REQUEST_URI'] == $root."/"){?> class="btnMenuSelect"<?php } else{?> class="btnMenu" <? }?>>
				<div <?php if($_SERVER['REQUEST_URI'] == $root.'/trang-chu/' || $_SERVER['REQUEST_URI'] == $root."/"){?> class="btnMenuSelectText"<?php } else{?> class="btnMenuText" <? }?>>Trang chủ</div>
			</a>
			<a href="<?=$root?>/rao-vat/" <?php if($_SERVER['REQUEST_URI'] == $root.'/rao-vat/'){?> class="btnMenuSelect"<?php } else{?> class="btnMenu" <? }?>>
				<div <?php if($_SERVER['REQUEST_URI'] == $root.'/rao-vat/'){?> class="btnMenuSelectText"<?php } else{?> class="btnMenuText" <? }?>>Rao vặt</div>
			</a>
		</div>
		<!-- end menu -->
		<div class="box-menu-text">
			<?
				if($_SESSION['is_login'] != true){
			?>
			<div class="btnTutor">
				<a class="btnTutor" href="javascript:void(0);">
					<b>Hướng dẫn</b>
				</a>
			</div>
			<div class="btnLogin">
				<a class="btnLogin" href="<?=$root?>/dang-nhap/" title="Đăng nhập">
					<b>Đăng nhập</b>
				</a>
			</div>
			<span class="sepera"></span>
			<div class="btnRegister">
				<a class="btnRegister" href="<?=$root?>/dang-ky/">
					<b>Đăng ký</b>
				</a>
			</div>
			<? }else{ ?>			
			<span class="sepera"></span>
			<div class="btnProducts">
				<a class="btnProducts" href="<?=$root?>/luu-san-pham/">Sản phẩm đã lưu </a>(<strong><?=loadSoSanPhamLuu($_SESSION['uid'])?></strong>)
			</div>				
			<div class="btnPm">
				<a class="btnPm" href="<?=$root?>/tin-nhan/" title="Tin nhắn">Tin nhắn</a> (<strong><?=loadSoTinNhan($_SESSION['uid'])?></strong>)
			</div>
			<span class="sepera"></span>
			<div class="btnAccount"> Xin chào: 
				<a title="Cập nhật tài khoản: <?=$_SESSION['uname']?>" href="<?=$root?>/thay-doi-thong-tin/"><b><?=$_SESSION['uname']?></b></a> [<a href="<?=$root?>/thoat/" title="Thoát">Thoát</a>]
				<a href="<?=$root?>/shop-<?=$_SESSION['uid']?>/<?=$_SESSION['uname']?>" title="Shop của <?=$_SESSION['uname']?>"><span>| [Shop]</span></a>
			</div>
			<span class="sepera"></span>
			<? } ?>		
		</div>		
	</div>	
</div>	
<!-- begin banner -->
<div id="banner">
	<div class="content">
		<div class="logo">
			<a href="<?=$root?>/trang-chu/">
				<img alt="VMua" src="<?=$root?>/themes/images/home/logo.png"/>
			</a>
		</div>
		<div class="search">			
			<div id="bgsearch">
				<div class="search-left">					
					<input type="text" class="keyword" value="Nhập từ khóa" onfocus="if(this.value=='Nhập từ khóa') this.value = '';" onblur="if(this.value=='') this.value='Nhập từ khóa';" name="keyword" id="keyword"/>
				</div>
				<div class="btnSearch-bg">
					<input type="button" class="btnSearch" onclick="funSearch();"/>
				</div>
				
			</div>
		</div>
	</div>
	<div class="support">
		<div class="link-random">
			<div class="rateChange">Tỉ giá tham khảo: <b>19.480 VNĐ/USD</b></div>
		</div>
		<div class="dang_ban">
			<a href="<?=$root?>/dang-ban/" class="btndang_ban"></a>
		</div>
	</div>
	<div class="clearfix"></div>
</div>
<?
	file_exist("includes/inc_nav_menu.php");
	include("includes/inc_nav_menu.php");
?>
</div>